// pages/roleCheck/roleCheck.js
Page({
  onLoad() {
      const app = getApp();
      const role = app.globalData.role;
      const redirectUrl = role === '1'? '/pages/site_logs_administrator/site_logs_administrator' : '/pages/site_logs/site_logs';
      wx.redirectTo({
          url: redirectUrl
      });
  }
});